<template>
  <div>
    <h2>User</h2>
  </div>
</template>
<script setup>
import { onBeforeRouteLeave } from 'vue-router';


onBeforeRouteLeave((to, from) => {
  console.log('User beforeRouteLeave');
  // return false;
})
</script>